package v1

import "github.com/gogf/gf/v2/frame/g"

// MiniUploadReq curl -F "file=@images.jpg" http://127.0.0.1:8000/api/uploadv1/mini-upload
type MiniUploadReq struct {
	g.Meta        `path:"upload/v1/mini-upload" tags:"" method:"post" summary:""`
	DirectoryName string `json:"directoryName"`
	Timestamp     int    `json:"timestamp"`
	Sign          string `json:"sign"`
}

type MiniUploadRes struct {
	g.Meta `mime:"application/json"`
	Id     string `json:"id"`
	Path   string `json:"path,omitempty"`
	Md5    string `json:"md5,omitempty"`
	Sha1   string `json:"sha1,omitempty"`
}

type ScalingReq struct {
	g.Meta `path:"upload/v1/scaling" tags:"" method:"get" summary:""`
	Path   string `json:"path"`
	Width  int    `json:"w"`
}

type ScalingRes struct {
	g.Meta `mime:"application/json"`
}
